﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="WebApplication.Main" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="x-ua-compatible" content="IE=8;" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="Styles/Default.css" rel="stylesheet" type="text/css" />
    <link href="Styles/ligerUI/css/ligerui-all.css" rel="stylesheet" type="text/css" />

    <link rel="stylesheet" href="Styles/menu.css" type="text/css" />
    <style type="text/css">
        .Left {
            border: 1px solid #FFFFFF;
            height: 35px;
            text-align: left;
            padding-left: 15px;
            color: #FFFFFF;
            font-family: TKTypeBold;
            font-weight: bold;
            font-size: 15px;
            cursor: pointer;
        }

        body {
            margin: 0px;
        }

        .red {
            color: Red;
            margin-left: 10px;
            font-size: 14px;
        }

        .badge {
            font-size: 12px;
            padding: 2px 8px;
            border: 1px solid #D1D1D1;
            border-radius: 10px;
            position: absolute;
            top: 10px;
            right: 20px;
        }

        .badge--warning {
            background: #FF6666;
            border-color: #FF6666;
        }
    </style>
    <script src="Scripts/jquery.min.js?ver=<%=version%>" type="text/javascript"></script>
    <script src="Scripts/ligerUI/ligerui.all.js?ver=<%=version%>" type="text/javascript"></script>
    <script src="Scripts/Common.js?ver=<%=version%>" type="text/javascript"></script>
    <script src="Scripts/Systems/Main.js?ver=<%=version%>" type="text/javascript"></script>
    <link href="Styles/toastr.css" rel="Stylesheet" />
    <script src="Scripts/toastr.js" type="text/javascript"></script>
</head>
<body style="padding: 0px; background: #cccccc;">
    <form id="form1" runat="server">


        <div id="topmenu" class="l-topmenu">
            <table style="font-size: 16px; z-index: 999; position: absolute;"><%--<table style="margin-top: 10px; margin-left: 15px; font-size: 16px; z-index: 999; position: absolute;">--%>
                <tr>
                    <td rowspan="1">
                        <img src="images/logo.jpg" width="80" height="80" />
                    </td>
                    <td style="width: 350px; color: #E7E7E7;">&nbsp;&nbsp;&nbsp;企业电力监控系统  Enterprise Power Monitor System
                    </td>
                </tr>
                <%--            <tr>
                <td>
                    &nbsp;&nbsp;&nbsp;
                </td>
            </tr>--%>
            </table>
            <div class="l-topmenu-welcome" style="vertical-align: bottom;">
                <asp:Label runat="server" Text="Welcome:" ID="LblWelcome" Font-Names="TKTypeMedium"
                    Style="vertical-align: middle; color: #E7E7E7;"></asp:Label>
                <asp:Label ID="lblUser" runat="server" Font-Bold="True" Style="color: #E7E7E7; vertical-align: middle;"
                    Font-Names="TKTypeMedium"></asp:Label>
                <span class="space" style="color: #E7E7E7; vertical-align: middle;">|</span>
                <asp:LinkButton ID="LbExit" runat="server" Text="Log out" ToolTip="Log out" class="l-link2"
                    OnClientClick="return LogOut()" ForeColor="#1F7FB6" OnClick="LbExit_Click" Font-Names="TKTypeMedium"
                    Style="vertical-align: middle; color: #E7E7E7;"></asp:LinkButton>
            </div>
        </div>

        <div id="mainmenu" style="width: 99.8%; margin: 0 auto; margin-top: 1px;">
            <div position="left" style="overflow-y:auto;">
                <ul id="expmenu-freebie">
                    <li>
                        <ul class="expmenu">

                            <li>
                                <div class="header" onclick="javascript:ShowDetail('Business/MyMessage.aspx',$('#lblMessage').html())">
                                    <%--<span class="label" style="background-image: url(Images/messages.png);">Messages</span>--%>
                                    <asp:Label ID="lblMessage" runat="server" Text="我的消息" class="label" Style="background-image: url(Images/messages.png);"></asp:Label>
                                    <span class="badge badge--warning" id="lblMessage_Count" runat="server">9</span>
                                    <%--<label id="lblMessage_Count" runat="server" class="badge badge--warning"></label>--%>
                                    <%--<span class="arrow up"></span>--%>
                                </div>
                            </li>

                            <li>
                                <div class="header" onclick="javascript:ShowDetail('Systems/MyInfo.aspx',$('#lblMyinfo').html())">
                                    <%--<span class="label" style="background-image: url(Images/messages.png);">Messages</span>--%>
                                    <asp:Label ID="lblMyinfo" runat="server" Text="个人档案" class="label" Style="background-image: url(Images/user.png);"></asp:Label>
                                    <%--<span class="arrow up"></span>--%>
                                </div>
                            </li>

                            <li>
                                <%if (strMenu.IndexOf("FB") >= 0)
                                  {
                                      %><div class="header"><span class="label" style="background-image: url(images/pc.png);">档案管理</span><span class="arrow up"></span></div><ul class="menu"><%
                                      if (strMenu.IndexOf("FB01") >= 0)
                                      {%><li onclick="javascript:ShowDetail('Systems/MyInfo.aspx',$('#lblMyinfo').html())">区域管理</li><%}
                                      %></ul><%
                                  } %>
                            </li>

                            <li>
                                <%if (strMenu.IndexOf("FA") >= 0)
                                  {
                                      %><div class="header"><span class="label" style="background-image: url(images/user.png);">系统管理</span><span class="arrow up"></span></div><ul class="menu"><%
                                      if (strMenu.IndexOf("FA01") >= 0)
                                      {%><li onclick="javascript:ShowDetail('Systems/UserInf.aspx',$('#lblUsers').html())"><asp:Label ID="lblUsers" runat="server" Text="用户信息" class="label" ></asp:Label></li><%}
                                      if (strMenu.IndexOf("FA02") >= 0)
                                      {%><li onclick="javascript:ShowDetail('Systems/RoleInf.aspx',$('#lblRole').html())"><asp:Label ID="lblRole" runat="server" Text="角色信息" class="label"></asp:Label></li><%}
                                      if (strMenu.IndexOf("FA03") >= 0)
                                      {%><li onclick="javascript:ShowDetail('Systems/FunctionInf.aspx',$('#lblFunction').html())"><asp:Label ID="lblFunction" runat="server" Text="功能模块" class="label"></asp:Label></li><%}
                                      if (strMenu.IndexOf("FA04") >= 0)
                                      {%><li onclick="javascript:ShowDetail('Systems/RoleFunction.aspx',$('#lblRolePerm').html())"><asp:Label ID="lblRolePerm" runat="server" Text="角色权限" class="label"></asp:Label></li><%}
                                      if (strMenu.IndexOf("FA05") >= 0)
                                      {%><li onclick="javascript:ShowDetail('Systems/ActionInf.aspx',$('#lblAction').html())"><asp:Label ID="lblAction" runat="server" Text="功能操作" class="label"></asp:Label></li><%}
                                      if (strMenu.IndexOf("FA06") >= 0)
                                      {%><li onclick="javascript:ShowDetail('Systems/LogInf.aspx',$('#lblLog').html())"><asp:Label ID="lblLog" runat="server" Text="系统日志" class="label"></asp:Label></li><%}                                                                                                                                                                                                
                                      %></ul><%
                                  } %>
                            </li>


                            <li>
                                <div class="header" onclick="javascript:ShowDetail('Err.aspx','Error Log')">
                                    <%--<span class="label" style="background-image: url(Images/messages.png);">Messages</span>--%>
                                    <asp:Label ID="lbErr" runat="server" Text="错误异常日志" class="label" Style="background-image: url(Images/search.png);"></asp:Label>
                                </div>
                            </li>

                            <li>
                                <div class="header">
                                    <span class="label" style="background-image: url(Images/search.png);">Search</span>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <div position="center" id="framecenter">
                <iframe frameborder="0" name="frmApply" id="frmApply" height="100%" width="100%"
                    src="Welcome.aspx"></iframe>
            </div>
        </div>



        <div style="display: none;">
            <asp:Button runat="server" Text="Button" ID="btnOut" OnClick="btnOut_Click"></asp:Button>
        </div>
        <input type="hidden" id="hdInner" runat="server" />
    </form>
</body>
</html>
<script type="text/javascript">
    var tg = "<%=tg %>";

</script>
